Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Oct 21, 2025

The code review note textarea was extending horizontally instead of wrapping text to fit visible boundaries when typing long lines.

Changes

  • NoteTextarea: Added overflow-x: hidden to prevent horizontal scroll
  • NoteTextarea: Added white-space: pre-wrap to wrap long lines
  • NoteTextarea: Added word-wrap: break-word to break long words if needed

Result

Text now wraps within the visible boundaries of the code review panel instead of extending beyond the screen.

Generated with cmux

@ammar-agent ammar-agent reopened this Oct 21, 2025
@ammar-agent ammar-agent changed the title 🤖 Fix diff text wrapping in code review 🤖 Fix code review textarea wrapping Oct 21, 2025
@chatgpt-codex-connector

This comment has been minimized.

@ammar-agent ammar-agent force-pushed the cr branch 5 times, most recently from 42e9081 to cbee1d9 Compare October 22, 2025 16:27
The review note textarea was extending horizontally beyond the visible
viewport because it was inheriting the width of the scrollable content
area (which expands for long diff lines) rather than the visible
scrollport width.

Solution:
Use position: sticky with left: 0 and width: 100% to remove the
InlineNoteContainer from the grid flow. This constrains it to the
visible scrollport width while keeping it visually positioned below
the selected lines.

Changes:
- InlineNoteContainer: Added position: sticky, left: 0, width: 100%
- NoteTextarea: Added overflow-y: auto, white-space: pre-wrap,
  word-wrap: break-word, box-sizing: border-box

Result:
Text in the review note input wraps within the visible viewport
boundaries. Long diff lines can still scroll horizontally, but the
textarea respects the visible container width.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant